/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_prod_app_attr_his.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PROD_APP_ATTR_HIS
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_prod_app_attr_his.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_PROD_APP_ATTR_HIS::CTable_PPM_PROD_APP_ATTR_HIS( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PROD_APP_ATTR_HIS" );
  prepareTable();
  prepareQuery();
 
  HIS_ID.setField( "HIS_ID", DATA_CHAR, 20, 1 );
  makeTableItem( HIS_ID );
  makeKeyItem( HIS_ID );
  ID.setField( "ID", DATA_CHAR, 20, 0 );
  makeTableItem( ID );

  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
  REMARK.setField( "REMARK", DATA_CHAR, 1024, 0 );
  makeTableItem( REMARK );
  SPEC_ID.setField( "SPEC_ID", DATA_CHAR, 20, 0 );
  makeTableItem( SPEC_ID );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  TYPE.setField( "TYPE", DATA_CHAR, 10, 0 );
  makeTableItem( TYPE );
}


CTable_PPM_PROD_APP_ATTR_HIS::CTable_PPM_PROD_APP_ATTR_HIS( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PROD_APP_ATTR_HIS" );
  prepareTable();
  prepareQuery();
 
  HIS_ID.setField( "HIS_ID", DATA_CHAR, 20, 1 );
  makeTableItem( HIS_ID );
  makeKeyItem( HIS_ID );
  ID.setField( "ID", DATA_CHAR, 20, 0 );
  makeTableItem( ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
  REMARK.setField( "REMARK", DATA_CHAR, 1024, 0 );
  makeTableItem( REMARK );
  SPEC_ID.setField( "SPEC_ID", DATA_CHAR, 20, 0 );
  makeTableItem( SPEC_ID );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  TYPE.setField( "TYPE", DATA_CHAR, 10, 0 );
  makeTableItem( TYPE );
}

CTable_PPM_PROD_APP_ATTR_HIS::~CTable_PPM_PROD_APP_ATTR_HIS( )
{
    close();
}

